<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--  referenciamos librerias de struts -->
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s"  uri="/struts-tags" %>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>


<html>

<sj:head jqueryui="true" />
<head>
	<script type="text/javascript">

	var datos=new Array();

	function Devuelve2(){
		datos.length = 0;
		var e=0;
		var objCheck = document.getElementsByName("willi"); 		
		for(i=0 ; i < objCheck.length; i++){			
			if(objCheck[i].checked == true){
				datos[e] = objCheck[i].value;
				e++;
			}
		} 
		returnValue = datos; 
		window.close(); 
	} 

	</script>


<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
.titPagina {
	color: white;
	font-family: verdana;
	font-size: 14px;
	background-color: black;
	text-align: center;
	font-weight: bolder;
}

.titCuadro { .
	font-family: calibri; .
	font-size: 12px;
}

.txGrilla {
	font-family: calibri; .
	font-size: 12px;
}

.brdDiv {
	border: 2px;
	border-style: groove;
}

.hColum {
	color: white;
	background-color: black;
	height: 3px;
	text-align: center;
}

.tbcap {
	text-align: left;
	padding: 0 15px;
	margin: 0;
}
</style>

<script type="text/javascript">


</script>

</head>
<body>
<div class="titPagina">TECNICOS</div>

<div class="brdDiv">
<div class="titCuadro">

</div>

<div style="display:block;float:left;width:49.5%" class="brdDiv">
<div class="titCuadro"><span style="padding: 0; margin: 0 40px;">
Tecnico </span>

<div style="padding: 0 60px">
<s:form method="post" action="consultaTecnicos" >
</s:form>
</div>
<table style="width: 80%; margin: 0 auto;">
	<caption class="tbcap"></caption>
	<thead class="hColum">
		<tr style="height: 3px;">
			<th style="width: 20%">Seleccionar</th>
			<th style="width: 20%">Cod. Tecnico</th>
			<th style="width: 20%">Nombre</th>
			<th style="width: 20%">Tipo</th>	
			<th style="width: 20%">Estado</th>
			<th style="width: 20%">Valor Hora</th>			
		</tr>
	</thead>
	 <c:forEach var="tec" items="${requestScope.tecnicos}">
		<tbody>
		<tr>
			<td align="center" >
			<s:url id="carga" action="cargaSolicitudPlanForm"  >
			<s:param name="intTec_codigo" > ${tec.intTec_codigo} </s:param>
			</s:url>	
			<!-- <a href="${carga}" > SeleccionarX </a>  -->
			<input type="checkbox" name="willi" value="${tec.intTec_codigo},${tec.strTec_apellidos},${tec.strTec_nombres},${tec.intTec_disp},${tec.dblTec_valhora}" >
			</td>		
			<td>${tec.intTec_codigo}</td>
			<td>${tec.strTec_apellidos}</td>
			<td>${tec.strTec_nombres}</td>
			<td>${tec.intTec_disp}</td>
			<td>${tec.dblTec_valhora}</td>			
		</tr>
	    </tbody>
	</c:forEach>
	 
	
</table>



</div>	



<div style="text-align: center;">
<input type="submit" value="Grabar" onclick="Devuelve2();"></input></div>

</div>



</div>
<div>
&nbsp;
</div>


</body>
</html>